<?php
//$con = mysql_connect('localhost','root','root');
//mysql_select_db('cnet',$con);
require_once('/utils/DAOResource.php');
 $con = new DAOResource;
$con-> getConnection(); 
$sql = "select * from category ";
$query = mysql_query($sql);
if (mysql_num_rows($query) !=0)
{ while($row = mysql_fetch_array($query))
 {
	echo "<a href = detail.php?category_ID=$row[CATEGORY_ID]>  $row[CATEGORY_NAME]</a> </br>";
 }
}
?>